package com.tancire.net.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tancire.common.annotation.Excel;
import com.tancire.common.core.domain.BaseEntity;

/**
 * 订单日志对象 order_log
 *
 * @author chenchao
 * @date 2023-11-30
 */
public class OrderLog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 订单ID
     */
    @Excel(name = "订单ID")
    private Long orderId;

    /**
     * 订单号
     */
    @Excel(name = "订单号")
    private String orderCode;

    /**
     * 日志描述
     */
    @Excel(name = "日志描述")
    private String logRemark;

    /**
     * 操作人名称
     */
    @Excel(name = "操作人名称")
    private String createByName;

    /**
     * 账号类型 0 系统 1 会员 2 公司
     */
    @Excel(name = "账号类型")
    private Integer sysFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setLogRemark(String logRemark) {
        this.logRemark = logRemark;
    }

    public String getLogRemark() {
        return logRemark;
    }

    public void setCreateByName(String createByName) {
        this.createByName = createByName;
    }

    public String getCreateByName() {
        return createByName;
    }

    public void setSysFlag(Integer sysFlag) {
        this.sysFlag = sysFlag;
    }

    public Integer getSysFlag() {
        return sysFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("orderId", getOrderId())
                .append("orderCode", getOrderCode())
                .append("logRemark", getLogRemark())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("createByName", getCreateByName())
                .append("sysFlag", getSysFlag())
                .toString();
    }
}
